package com.example.demo.entity.requestJson;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("登录请求JSON类")
public class LoginReq {

    /**
     * 账号,即手机号
     */
    @ApiModelProperty(value = "账号即手机号", position = 2)
    private String account;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", position = 3)
    private String loginpwd;

    /**
     * 账号,即手机号
     */
    @ApiModelProperty(value = "登录角色", position = 2)
    private Integer role;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getLoginpwd() {
        return loginpwd;
    }

    public void setLoginpwd(String loginpwd) {
        this.loginpwd = loginpwd;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "LoginReq{" +
                "account='" + account + '\'' +
                ", loginpwd='" + loginpwd + '\'' +
                ", role=" + role +
                '}';
    }
}
